//package com.visec.example;
//
//import com.visec.platform.webstarter.security.core.shiro.conf.ShiroFilterChain;
//import com.visec.platform.webstarter.security.core.shiro.filter.AccessAuthorizationFilter;
//import com.visec.platform.webstarter.security.core.shiro.filter.DatabaseFilter;
//import com.visec.platform.webstarter.security.core.shiro.filter.LicenseFilter;
//import com.visec.platform.webstarter.security.core.shiro.filter.LoginAuthenticatingFilter;
//import org.springframework.stereotype.Component;
//
//import javax.servlet.Filter;
//import java.util.Collections;
//import java.util.HashMap;
//import java.util.LinkedHashMap;
//import java.util.Map;
//
//@Component
//public class FilterChain extends ShiroFilterChain {
//
//    private static final Map<String, Filter> FILTER_MAP;
//
//    static {
//        Map<String, Filter> filterMap = new LinkedHashMap<>();
////        filterMap.put(FILTER_AUTHC, new LoginAuthenticatingFilter());
////        filterMap.put(FILTER_PERMS, new AccessAuthorizationFilter());
////        filterMap.put(FILTER_LICENSE, new LicenseFilter());
//        filterMap.put(FILTER_DB_CHECK, new DatabaseFilter());
//        FILTER_MAP = Collections.unmodifiableMap(filterMap);
//    }
//
////    uri -> key
//    @Override
//    public Map<String, String> getFilterChainMap() {
//
//        Map<String, String>  map  =  new HashMap<>();
//        map.put("/sys/test",FILTER_DB_CHECK);
//        map.put("/dthrgd/test",FILTER_DB_CHECK);
//        map.put("/ss/test",FILTER_DB_CHECK);
//        map.put("/sys/test",FILTER_DB_CHECK);
//        map.put("/sys/test",FILTER_DB_CHECK);
//        map.put("/dd/test",FILTER_DB_CHECK);
//        map.put("/sys/test",FILTER_DB_CHECK);
//        map.put("/sss/test",FILTER_DB_CHECK);
//        return map;
//    }
//
//
//    // key - filter
//    @Override
//    public Map<String, Filter> getFilterMap() {
//
//
////        super.getFilterChainMap().put("xxx",new DatabaseFilter())
//
//        return new HashMap<>(FILTER_MAP);
//    }
//
//
//}
